/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

@use "shared";

.versions-page {
  max-width: 1400px !important;
  padding: 28px;

  h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  h2 {
    font-size: 1.66rem;
    margin-top: 12px;
  }

  code {
    white-space: pre;
    border: 0;
  }

  p a,
  td a {
    @extend %link-style;

    code {
      background: none;
      white-space: nowrap;
    }
  }

  .versions {
    margin-bottom: 0;

    tr:first-child {
      border-top: 0;
    }
  }

  .table-wrapper {
    margin-bottom: 24px;
    width: fit-content;

    tr th {
      padding: 8px 16px;
      min-width: 100px;
      font-size: 80%;
      border: 0;
      border-right: 1px solid var(--ifm-table-border-color);

      &:last-child {
        border-right: 0;
      }
    }

    tr td {
      padding: 8px 16px;
      min-width: 100px;
      font-size: 90%;
      border: 0;
      border-right: 1px solid var(--ifm-table-border-color);
      align-content: baseline;

      code {
        vertical-align: unset;
      }

      &:last-child {
        border-right: 0;
      }
    }
  }

  .markdown > *:last-child {
    margin-bottom: 24px !important;
  }
}

html[data-theme="dark"] .versions-page {
  p a,
  td a {
    @extend %link-style-dark;
  }
}
